//
//  NSDictionary+Wdp.m
//  WDPubLib
//
//  Created by wujianrong on 16/4/15.
//  Copyright © 2016年 wanda. All rights reserved.
//

#import "NSDictionary+wdice.h"

@implementation NSDictionary(wdice)

-(NSString*)iceToJsonString
{
    NSData *jsonData = [NSJSONSerialization dataWithJSONObject:self options:NSJSONWritingPrettyPrinted error:nil];
    NSString *jsonString =[[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
    return jsonString;
}

- (NSString*)iceUTF8Description {
    NSString *desc = [self description];
    desc = [NSString stringWithCString:[desc cStringUsingEncoding:NSUTF8StringEncoding] encoding:NSNonLossyASCIIStringEncoding];
    return desc;
}

@end
